﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using Core.Base;
using ERP.BusinessEntities;

namespace MainApp.Modules.PO
{
    public class POModule: BaseModule
    {
        public POModule()
        {
            this.Name = "PO";
            entity = new POEntity();
            Init();
        }
        #region calculate
        public override void CalcItem_FK_ICProducts_ID(Object objItem, ICProductsInfo Product)
        {
            AppContext.SetProperty(objItem, AppContext.cstFKStock, Product.FK_ICStocks_ID);
            AppContext.SetProperty(objItem, AppContext.cstFKStockUOM, Product.FK_ICStockUOMs_ID);
            AppContext.SetProperty(objItem, AppContext.cstFKTaxCode, Product.FK_TxTaxCodes_InVATID);
            AppContext.SetProperty(objItem, AppContext.cstFUnitPrice, Product.PurchaseUnitPrice);
        }
        #endregion

    }
}
